package com.kuangstudy.scanner;

import java.util.Scanner;

/**
 * ClassName: Demo3
 * date: 2021/7/10/010
 *
 * @author zlk
 */
public class Demo3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double sum = 0;
        int m = 0;
        while (scanner.hasNextDouble()){
            double v = scanner.nextDouble();
            sum += v;
            m++;
        }
        System.out.println(m);
        System.out.println(sum);
        scanner.close();
    }
}
